Optimal. Leaf size=39 \[ -\frac {\cos (e+f x) (-3 \sin (e+f x)-3)^{-m-1} (a \sin (e+f x)+a)^m}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {23, 2648} \[ -\frac {\cos (e+f x) (-3 \sin (e+f x)-3)^{-m-1} (a \sin (e+f x)+a)^m}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 2648
Rubi steps
\begin {align*} \int (-3-3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m \, dx &=\left ((-3-3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^{1+m}\right ) \int \frac {1}{a+a \sin (e+f x)} \, dx\\ &=-\frac {\cos (e+f x) (-3-3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.52, size = 106, normalized size = 2.72 \[ -\frac {2^{-m} 3^{-m-1} \cos \left (\frac {1}{4} (2 e+2 f x+\pi )\right ) (-\sin (e+f x)-1)^{-m-1} \sin ^{-2 m-1}\left (\frac {1}{4} (2 e+2 f x+\pi )\right ) (a (\sin (e+f x)+1))^m \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^{2 (m+1)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 43, normalized size = 1.10 \[ \frac {\left (-\frac {1}{3} \, a\right )^{m} {\left (\cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1\right )}}{3 \, {\left (f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.26, size = 827, normalized size = 21.21 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.64, size = 0, normalized size = 0.00 \[ \int \left (-3-3 \sin \left (f x +e \right )\right )^{-1-m} \left (a +a \sin \left (f x +e \right )\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.23, size = 45, normalized size = 1.15 \[ \frac {2 \, a^{m}}{{\left (3^{m + 1} \left (-1\right )^{m} + \frac {3^{m + 1} \left (-1\right )^{m} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.39, size = 52, normalized size = 1.33 \[ \frac {{\left (a\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^m\,\left (-\cos \left (e+f\,x\right )+\sin \left (e+f\,x\right )\,1{}\mathrm {i}+1{}\mathrm {i}\right )}{f\,{\left (-3\,\sin \left (e+f\,x\right )-3\right )}^{m+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________